<div id="main_content">
<table class="table" cellspacing="0" cellpadding="4" border="0">
    <tr>
        <th>ID</th>
        <th>Имя</th>
        <th>Название</th>
        <th>Тип</th>
        <th>Действия</th>
    <tr>
    <?php foreach($fields as $row): ?>
    <tr>
        <td><?=$row['id'] ?></td>
        <td><?=$row['name'] ?></td>
        <td><?=$row['title'] ?></td>
        <td><?=lang('field_'.$row['type'])?></td>
        <td>
        <?=modalbox('modul/node/field_edit/'.$row['id'], image('images/icons/gear.png'), 'Изменить поле - '.$row['title']);?>
        <?=modalboxquestion ('modul/page/field_delete/'.$row['id'], image('images/icons/cross.png'), 'Удалить поле - '.$row['title'])?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>

<?=modalbox('modul/node/field_add/'.$node, 'Добавить поле', 'Добавить поле', array('class' => 'add'));?>
</div>